package com.augurit.smartform.database.dialect;

/**
 * 查询值转换成数据库可识别查询值的转换类
 * @author cuigeqiang
 *
 */
public class QueryConverter {
	private String symbol;
	private String prefix;
	private String suffix;
	public QueryConverter(){}
	public QueryConverter(String prefix, String suffix,String symbol) {
		this.prefix = prefix;
		this.suffix = suffix;
		this.symbol=symbol;
	}
	public String getPrefix() {
		return prefix;
	}
	public void setPrefix(String prefix) {
		this.prefix = prefix;
	}
	public String getSuffix() {
		return suffix;
	}
	public void setSuffix(String suffix) {
		this.suffix = suffix;
	}
	public String getSymbol() {
		return symbol;
	}
	public void setSymbol(String symbol) {
		this.symbol = symbol;
	}
	public String getQueryValue(String value){
		String fullQueryValue=this.symbol+" "+this.prefix+value+this.suffix;
		return fullQueryValue;
	}
}
